package com.jufa_3.dto;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SelRetInfo {

    private boolean isAll;

    private String msg;

    private Object returnJO;

    public SelRetInfo(boolean isAll, JSONArray companyPostInfo) {
        this.isAll = isAll;
        this.returnJO = companyPostInfo;
    }

    public SelRetInfo(boolean isAll, JSONObject returnJO) {
        this.isAll = isAll;
        this.returnJO = returnJO;
    }

    public SelRetInfo(boolean isAll, String msg) {
        this.isAll = isAll;
        this.msg = msg;
    }

    public boolean isAll() {
        return isAll;
    }

    public Object getReturnJO() {
        return returnJO;
    }

}
